package com.zy.teacherSide.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.teacherSide.entity.Teacher;

/**
 * @author qu
 */
public interface ITeacherService extends IService<Teacher> {
    /**
     * 根据教师的编号和密码进行查询
     * @param teacherNum
     * @param teacherPassword
     * @return Teacher
     */
    Teacher teacherLogin(Integer teacherNum,String teacherPassword);

    /**
     * 根据教师编号查重
     * @param teacherNum
     * @return Teacher
     */
    Teacher getTeacherById(Integer teacherNum);

    /**
     * 根据教师teacher_id查重
     * @param teacherId
     * @return Teacher
     */
    Teacher getTeacherByTeacherId(Integer teacherId);

    /**
     * 更新教师权限
     * @param shiro
     * @param teacherId
     * @return Boolean
     */
    Boolean updateTeacher(Integer shiro,Integer teacherId);

}
